package cn.tedu.loding.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 添加商品(Product)DTO类
 *
 * @author makejava
 * @since 2022-11-26 23:27:03
 */
@Data
public class ProductAddNewDTO implements Serializable {
    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称", required = true)
    @NotNull(message = "必须提交商品名称")
    private String name;
    /**
     * 商品简介
     */
    @ApiModelProperty(value = "商品简介", required = true)
    @NotNull(message = "必须提交商品简介")
    private String description;
    /**
     * 商品原价
     */
    @ApiModelProperty(value = "商品原价", required = true)
    @NotNull(message = "必须提交商品原价")
    private Double oldPrice;
    /**
     * 会员价
     */
    @ApiModelProperty(value = "会员价", required = true)
    @NotNull(message = "必须提交会员价")
    private Double vipPrice;
    /**
     * 类别id
     */
    @ApiModelProperty(value = "类别id", required = true)
    @NotNull(message = "必须提交类别id")
    private Long categoryId;
    /**
     * 品牌id
     */
    @ApiModelProperty(value = "品牌id", required = true)
    @NotNull(message = "必须提交品牌id")
    private Long brandId;
    /**
     * 库存数
     */
    @ApiModelProperty(value = "库存数", required = true)
    @NotNull(message = "必须提交库存数")
    private Long stock;
    /**
     * 自定义排序
     */
    @ApiModelProperty(value = "自定义排序", required = true)
    @NotNull(message = "必须提交自定义排序")
    private Integer sort;
    /**
     * 是否显示
     */
    @ApiModelProperty(value = "是否显示", required = true)
    @NotNull(message = "必须提交是否显示")
    private Integer idDisplay;


}

